package com.sz.designpattern.construct7.bridge.fine;

public class BrdigeMain {
    public static void main(String[] args) {
        MessageImpl messageImpl = new EmailMsg();
        AbstractMessage message = new CommonMessage(messageImpl);
        message.sendMessage("请假","ll");

        messageImpl = new SysMsg();
        message = new UrgencyMessage(messageImpl);

        message.sendMessage("请假","ll");


    }
}
